{include file="public/header" /}
<div class="layui-form">
  <!-- <button type="button" class="layui-btn layui-btn-sm">账户</button> -->
  <table class="layui-table">
    
    <thead>
      <tr>
        <th>账户</th>
        <th>权限</th>
       <!--  <th>操作</th> -->
      </tr> 
    </thead>
    <tbody>
    	 {foreach $user as $key=>$vo }
    	 <?php 
    	 	$power_str='';
    	 	$power=explode(',',trim($vo['power'],','));
    	 	foreach ($power as $k => $v) {
    	 		$power_str.=$auth_data[','.$v.',']." | ";
    	 	}
    	 ?>
	      <tr>
	        <td>{$vo['username']}</td>
	        <td>{:rtrim($power_str,' | ')}</td>
	        <!-- <td><button type="button" class="layui-btn layui-btn-sm">删除</button></td>   -->     
	      </tr>
	    {/foreach}  
      
    </tbody>
  </table>
</div>
{include file="/public/footer" /}